package demo_2_param;

public class homework_2 {
	public static void main(String[] args) {
		int x=0,sum=0;
		while (x<=1000){
			x++;
			if (x%5==0) {
				sum++;
				if (sum%35==0) {
					System.out.println();
				} else {
					System.out.print(x+" ");
				}
			}
		}
	}
}
